#include <stdio.h>
#include "JniExample.h"

/*
 * Class:     JniExample
 * Method:    printHello
 * Signature: ()V
 */
JNIEXPORT void JNICALL Java_JniExample_printHello(JNIEnv *env, jobject obj)
{	
	printf("Hello Liuwen\n");
	return ;
};

/*
 * Class:     JniExample
 * Method:    printString
 * Signature: (Ljava/lang/String;)V
 */
JNIEXPORT void JNICALL Java_JniExample_printString(JNIEnv *env, jobject obj, jstring string)
{
	const char *str = (*env)->GetStringUTFChars(env, string,0);
	printf("%s\n", str);
	return ;
};

